/**
 * Created by Freeman on 2016/7/14.
 */
import * as types from './types'
export const searchAction = ({dispatch},search) =>{
    dispatch(types.SEARCH,search)
}

export const selectUserAction = ({dispatch},index)=>{
    dispatch(types.USER_SELECT,index)
}

export const sendTextAction = ({dispatch}) =>{
    dispatch(types.SEND_TEXT)
}

export const writeTextAction = ({dispatch},text)=>{
    dispatch(types.WRITE_TEXT,text)
}